﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace FZKJ.COMMON
{
    public class EncryptHelper
    {
        public static string GetSHA1(string value)
        {
            return FormsAuthentication.HashPasswordForStoringInConfigFile(value, "SHA1");
        }
        public static string GetMD5(string value)
        {
            return FormsAuthentication.HashPasswordForStoringInConfigFile(value, "MD5"); ;
        }
    }
}
